﻿@using Web.Infrastructure.Extensions
@{
    Layout = string.Format("~/Views/Shared/EditorTemplates/_EditorTemplateLayout.cshtml");
    var selectList = (ViewData["SelectList"] != null) ? new Dictionary<string, string>(((Dictionary<string, string>)ViewData["SelectList"])) : null;
    if (selectList != null) { ViewData.Remove("SelectList"); }
}
@model object

<div class="clearfix">
    @{
        if (selectList != null)
        {
            @Html.DropDownList("", new SelectList(selectList, "Key", "Value", (Model ?? "").ToString()), ViewData)
        }
    }

</div>
